Skip to main content

controlAtLoc

Type

function

Summary

Returns the control at the specified location.

Syntax

controlAtLoc(<coordinates>)

Description

The controlAtLoc function returns the control at the given location. The function returns the number of the control, below are examples of getting the name or long id of the control

    get the name of (controlAtLoc(coordinates))

get the long ID of (controlAtLoc(coordinates))

Parameters

NameTypeDescription

coordinates

point

A location, relative to the current stack

Examples

put controlAtLoc((10,10))
get the name of (controlAtLoc(the mouseLoc))

function: mouseLoc, controlAtScreenLoc

keyword: control

property: location

Compatibility and Support

Introduced

LiveCode 6.0

OS

mac

windows

linux

ios

android

Platforms

desktop

server

mobile

Thank you for your feedback!

Was this page helpful?